# _*_ coding: utf-8 _*_
from rest_framework.routers import DefaultRouter
from django.conf.urls import url, include

import views

urlpatterns = [
    # url(r'^reg_sms/$', views.UserSms),
    # url(r'^register/$', views.UserRegister),
    # url(r'^forgotpassword/$', views.UserForgotPassword),
    # url(r'^login/$', views.UserLogin.as_view()),
    # url(r'^login_info/$', views.UserInfo.as_view()),
    # url(r'^login_updatepasswd/$', views.UserUpdatePassword),
    # url(r'^logout/$', views.UserLogout),
]

router = DefaultRouter()
router.register(r'navigation', views.NavigationViewSet, base_name='navigation')
router.register(r'housetype', views.HouseTypeViewSet, base_name='housetype')
router.register(r'housebuilding', views.HouseBuildingViewSet, base_name='housebuilding')
router.register(r'designerjob', views.DesignerJobViewSet, base_name='designerjob')
router.register(r'designer', views.DesignerViewSet, base_name='designer')
router.register(r'housestyle', views.HouseStyleViewSet, base_name='housestyle')
router.register(r'case', views.CaseViewSet, base_name='case')
router.register(r'banner', views.BannerViewSet, base_name='banner')
router.register(r'article', views.ArticleViewSet, base_name='article')
router.register(r'global_activity', views.GlobalActivityViewSet, base_name='global_activity')
router.register(r'furniture_type', views.FurnitureTypeViewSet, base_name='furniture_type')
router.register(r'furniture_brand', views.FurnitureBrandViewSet, base_name='furniture_brand')
router.register(r'furniture', views.FurnitureViewSet, base_name='furniture')
urlpatterns += router.urls

#urlpatterns = format_suffix_patterns(urlpatterns)
